package com.qinglei.recoup.third.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 监测仪添加数据传输对象
 *
 * @author yujunwei
 * @datetime 2022-05-04 20:46
 */
@ApiModel(description = "监测仪添加参数")
@Data
public class RadarAddDto {

    @ApiModelProperty(value = "监测仪SN码", required = true)
    @NotEmpty(message = "监测仪SN码不能为空")
    @Length(min = 12, max = 12, message = "监测仪SN码为12位")
    private String snCode;

}
